const express = require('express')
const bodyParser = require('body-parser')
const app = express()
app.listen(3000)

// 关联
// querystring / qs
// application/x-www-form-urlencoded
/* app.use(bodyParser.urlencoded({ extended: false }))
// application/json
app.use(bodyParser.json()) */

app.use(express.urlencoded({ extended: false }))
app.use(express.json())

app.post('/login', (req, res) => {
  res.send(req.body)
})
